package com.zjp.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.zjp.plugins.CameHumpInterceptor;
import com.zjp.plugins.SQLInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类
 */
@Configuration
public class MybatisPlusConfig {
    /**
     * 分页插件
     *
     * @return
     */
    @Bean
    public PaginationInnerInterceptor PaginationInnerInterceptor() {
        return new PaginationInnerInterceptor();
    }


    @Bean
    public SQLInterceptor sqlInterceptor(){
        return new SQLInterceptor();
    }
    @Bean
    public CameHumpInterceptor cameHumpInterceptor(){
        return new CameHumpInterceptor();
    }



}
